package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 老师表
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Teacher对象", description="老师表")
@TableName(excludeProperty={"qq","email","gender","phone","roleId","roleName"})
public class Teacher implements Serializable {
    /**
     * 所有的老师；
     * key 老师Id
     * value 老师名称
     */
    public static Map<Integer, Teacher> teachers = new HashMap<>();
    private static final long serialVersionUID = 1L;

    private int roleId;
    private String roleName;
    private int gender;
    private String email;
    private String qq;
    private String phone;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "教师名称")
    @TableField("teacherName")
    private String teachername;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private Integer userid;

    @ApiModelProperty(value = "身份证")
    @TableField("idCard")
    private String idcard;

    @ApiModelProperty(value = "住址")
    private String address;

    @ApiModelProperty(value = "出生日期")
    private Date birthday;

    @ApiModelProperty(value = "入职时间")
    @TableField("createTime")
    private Date createtime;


}
